#!/bin/bash

. /nyyos/remote/fastosc.sh
. /nyyos/remote/detectip.sh

init_osc true --os-project-domain-name Default --os-user-domain-name Default --os-project-name <name> --os-username admin --os-password <password> --os-auth-url http://172.16.31.14:35357/v3 --os-interface internal --os-identity-api-version 3 --os-region-name RegionOne --os-auth-type password || exit -1

get_floatingIP
cleanup_osc
exit

run_openstack  server list
vmuuid=2fbcd5e6-9834-40da-b7ac-be0b0800e330
detect_fip 172.16.113.5 $vmuuid
image=19effa3d-505b-467e-9bd5-13abfdcad4e2
get_image_os_distro $image 
get_image_os_properties $image

get_instance_by_fip 172.16.113.2

get_port_id admin 172.16.113.220

get_instance_status $vmuuid
get_instance_image $vmuuid

get_network_id 3b6b4134-9948-4daf-b401-b6321ea4f665


